

  ========= 测试开始 : 20210604_094351 =========



>>> cases\API\Control1.py

[ suite setup ] cases\API\Control1.py
返回token

* API_3001  -  2021-06-04 09:43:51

  [ case execution steps ]
控制接口：电扶梯控制接口 测试     #3.1
前置条件：token正确，'pointName':'ZGZ.BAS.ZM.CONTROL.ddocb01_0'正确
预期结果:
{
    "status": "success", 
    "msg": "控制成功", 
    "code": 0, 
    "type": null, 
    "data": null
}
        
测试结果：
{
    "status": "false",
    "msg": "org.springframework.web.bind.MissingServletRequestParameterException: Required Integer parameter 'status' is not present",
    "code": 500,
    "data": null
}

对比结果：
['"code":0', '"code":500', '"msg":"org.springframework.web.bind.MissingServletRequestParameterException:RequiredIntegerparameter\'status\'isnotpresent"', '"msg":"控制成功"', '"status":"false"', '"status":"success"', '"type":null']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Control1.py", line 46, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_3002  -  2021-06-04 09:43:51

  [ case execution steps ]
控制接口：电扶梯控制接口 测试     #3.1
前置条件：token过期，'pointName':'ZGZ.BAS.ZM.CONTROL.ddocb01_0'正确
预期结果:
{
    "status": "false", 
    "msg": "控制失败", 
    "code": 1, 
    "type": null, 
    "data": 0
}
        
测试结果：
{
    "msg": "用户未登录！",
    "code": 401,
    "status": "false"
}

对比结果：
['"code":1', '"code":401', '"data":0', '"msg":"控制失败"', '"msg":"用户未登录！"', '"type":null']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Control1.py", line 81, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_3003  -  2021-06-04 09:43:51

  [ case execution steps ]
控制接口：电扶梯控制接口 测试     #3.1
前置条件：token 为空，'pointName':'ZGZ.BAS.ZM.CONTROL.ddocb01_0'正确
预期结果:
{
    "status": "false", 
    "msg": "控制失败", 
    "code": 1, 
    "type": null, 
    "data": 0
}
        
测试结果：
{
    "msg": "用户未登录！",
    "code": 401,
    "status": "false"
}

对比结果：
['"code":1', '"code":401', '"data":0', '"msg":"控制失败"', '"msg":"用户未登录！"', '"type":null']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Control1.py", line 114, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_3004  -  2021-06-04 09:43:51

  [ case execution steps ]
控制接口：电扶梯控制接口 测试     #3.1
前置条件：token正确，'pointName':'ZGZ.PSD.CONTROL.ddocb_0'错误，PSD的控点存在，但不在目标控点内
预期结果:
{
    "status": "false", 
    "msg": "控制失败", 
    "code": 1, 
    "type": null, 
    "data": 0
}
        
测试结果：
{
    "status": "false",
    "msg": "org.springframework.web.bind.MissingServletRequestParameterException: Required Integer parameter 'status' is not present",
    "code": 500,
    "data": null
}

对比结果：
['"code":1', '"code":500', '"data":0', '"data":null', '"msg":"org.springframework.web.bind.MissingServletRequestParameterException:RequiredIntegerparameter\'status\'isnotpresent"', '"msg":"控制失败"', '"type":null']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Control1.py", line 147, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_3005  -  2021-06-04 09:43:51

  [ case execution steps ]
控制接口：电扶梯控制接口 测试     #3.1
前置条件：token正确，'pointName'不填
预期结果:
{
    "status": "false", 
    "msg": "控制失败", 
    "code": 1, 
    "type": null, 
    "data": 0
}
        
测试结果：
{
    "status": "false",
    "msg": "org.springframework.web.bind.MissingServletRequestParameterException: Required Integer parameter 'status' is not present",
    "code": 500,
    "data": null
}

对比结果：
['"code":1', '"code":500', '"data":0', '"data":null', '"msg":"org.springframework.web.bind.MissingServletRequestParameterException:RequiredIntegerparameter\'status\'isnotpresent"', '"msg":"控制失败"', '"type":null']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Control1.py", line 178, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError



>>> cases\API\Control2.py

[ suite setup ] cases\API\Control2.py
返回token

* API_3006  -  2021-06-04 09:43:51

  [ case execution steps ]
控制接口：卷帘门控制接口 测试     #3.2
前置条件：token正确，'pointName':'ZGZ.BAS.ZM.CONTROL.ddocb02_0'正确
预期结果:
{
    "status": "success", 
    "msg": "控制成功", 
    "code": 0, 
    "type": null, 
    "data": null
}
        
测试结果：
{
    "status": "false",
    "msg": "org.springframework.web.bind.MissingServletRequestParameterException: Required Integer parameter 'status' is not present",
    "code": 500,
    "data": null
}

对比结果：
['"code":0', '"code":500', '"msg":"org.springframework.web.bind.MissingServletRequestParameterException:RequiredIntegerparameter\'status\'isnotpresent"', '"msg":"控制成功"', '"status":"false"', '"status":"success"', '"type":null']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Control2.py", line 46, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_3007  -  2021-06-04 09:43:51

  [ case execution steps ]
控制接口：卷帘门控制接口 测试     #3.2
前置条件：token 过期，'pointName':'ZGZ.BAS.ZM.CONTROL.ddocb02_0'正确
预期结果:
{
    "status": "false", 
    "msg": "控制失败", 
    "code": 1, 
    "type": null, 
    "data": 0
}
        
测试结果：
{
    "msg": "用户未登录！",
    "code": 401,
    "status": "false"
}

对比结果：
['"code":1', '"code":401', '"data":0', '"msg":"控制失败"', '"msg":"用户未登录！"', '"type":null']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Control2.py", line 81, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_3008  -  2021-06-04 09:43:51

  [ case execution steps ]
控制接口：卷帘门控制接口 测试     #3.2
前置条件：token 为空，'pointName':'ZGZ.BAS.ZM.CONTROL.ddocb02_0'正确
预期结果:
{
    "status": "false", 
    "msg": "控制失败", 
    "code": 1, 
    "type": null, 
    "data": 0
}
        
测试结果：
{
    "msg": "用户未登录！",
    "code": 401,
    "status": "false"
}

对比结果：
['"code":1', '"code":401', '"data":0', '"msg":"控制失败"', '"msg":"用户未登录！"', '"type":null']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Control2.py", line 114, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_3009  -  2021-06-04 09:43:51

  [ case execution steps ]
控制接口：卷帘门控制接口 测试     #3.2
前置条件：token正确，'pointName':'ZGZ.PSD.CONTROL.ddocb_0'错误，PSD的控点存在，但不在目标控点内
预期结果:
{
    "status": "false", 
    "msg": "控制失败", 
    "code": 1, 
    "type": null, 
    "data": 0
}
        
测试结果：
{
    "status": "false",
    "msg": "org.springframework.web.bind.MissingServletRequestParameterException: Required Integer parameter 'status' is not present",
    "code": 500,
    "data": null
}

对比结果：
['"code":1', '"code":500', '"data":0', '"data":null', '"msg":"org.springframework.web.bind.MissingServletRequestParameterException:RequiredIntegerparameter\'status\'isnotpresent"', '"msg":"控制失败"', '"type":null']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Control2.py", line 147, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_3010  -  2021-06-04 09:43:51

  [ case execution steps ]
控制接口：卷帘门控制接口 测试     #3.2
前置条件：token正确，'pointName'为空
预期结果:
{
    "status": "false", 
    "msg": "控制失败", 
    "code": 1, 
    "type": null, 
    "data": 0
}
        
测试结果：
{
    "status": "false",
    "msg": "org.springframework.web.bind.MissingServletRequestParameterException: Required Integer parameter 'status' is not present",
    "code": 500,
    "data": null
}

对比结果：
['"code":1', '"code":500', '"data":0', '"data":null', '"msg":"org.springframework.web.bind.MissingServletRequestParameterException:RequiredIntegerparameter\'status\'isnotpresent"', '"msg":"控制失败"', '"type":null']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Control2.py", line 178, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError



>>> cases\API\Control3.py

[ suite setup ] cases\API\Control3.py
返回token

* API_3011  -  2021-06-04 09:43:52

  [ case execution steps ]
控制接口：AFC控制接口 测试     #3.3
前置条件：token正确，'pointName':'ZGZ.BAS.ZM.CONTROL.ddocb03_0'正确
预期结果:
{
    "status": "success", 
    "msg": "控制成功", 
    "code": 0, 
    "type": null, 
    "data": null
}
        
测试结果：
{
    "status": "false",
    "msg": "org.springframework.web.bind.MissingServletRequestParameterException: Required Integer parameter 'status' is not present",
    "code": 500,
    "data": null
}

对比结果：
['"code":0', '"code":500', '"msg":"org.springframework.web.bind.MissingServletRequestParameterException:RequiredIntegerparameter\'status\'isnotpresent"', '"msg":"控制成功"', '"status":"false"', '"status":"success"', '"type":null']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Control3.py", line 46, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_3012  -  2021-06-04 09:43:52

  [ case execution steps ]
控制接口：AFC控制接口 测试     #3.3
前置条件：token过期，'pointName':'ZGZ.BAS.ZM.CONTROL.ddocb03_0'正确
预期结果:
{
    "status": "false", 
    "msg": "控制失败", 
    "code": 1, 
    "type": null, 
    "data": 0
}
        
测试结果：
{
    "msg": "用户未登录！",
    "code": 401,
    "status": "false"
}

对比结果：
['"code":1', '"code":401', '"data":0', '"msg":"控制失败"', '"msg":"用户未登录！"', '"type":null']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Control3.py", line 81, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_3013  -  2021-06-04 09:43:52

  [ case execution steps ]
控制接口：AFC控制接口 测试     #3.3
前置条件：token 为空，'pointName':'ZGZ.BAS.ZM.CONTROL.ddocb03_0'正确
预期结果:
{
    "status": "false", 
    "msg": "控制失败", 
    "code": 1, 
    "type": null, 
    "data": 0
}
        
测试结果：
{
    "msg": "用户未登录！",
    "code": 401,
    "status": "false"
}

对比结果：
['"code":1', '"code":401', '"data":0', '"msg":"控制失败"', '"msg":"用户未登录！"', '"type":null']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Control3.py", line 114, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_3014  -  2021-06-04 09:43:52

  [ case execution steps ]
控制接口：AFC控制接口 测试     #3.3
前置条件：token正确，'pointName':'ZGZ.PSD.CONTROL.ddocb_0'错误，PSD的控点存在，但不在目标控点内
预期结果:
{
    "status": "false", 
    "msg": "控制失败", 
    "code": 1, 
    "type": null, 
    "data": 0
}
        
测试结果：
{
    "status": "false",
    "msg": "org.springframework.web.bind.MissingServletRequestParameterException: Required Integer parameter 'status' is not present",
    "code": 500,
    "data": null
}

对比结果：
['"code":1', '"code":500', '"data":0', '"data":null', '"msg":"org.springframework.web.bind.MissingServletRequestParameterException:RequiredIntegerparameter\'status\'isnotpresent"', '"msg":"控制失败"', '"type":null']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Control3.py", line 147, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_3015  -  2021-06-04 09:43:52

  [ case execution steps ]
控制接口：AFC控制接口 测试     #3.3
前置条件：token正确，pointName为空
预期结果:
{
    "status": "false", 
    "msg": "控制失败", 
    "code": 1, 
    "type": null, 
    "data": 0
}
        
测试结果：
{
    "status": "false",
    "msg": "org.springframework.web.bind.MissingServletRequestParameterException: Required Integer parameter 'status' is not present",
    "code": 500,
    "data": null
}

对比结果：
['"code":1', '"code":500', '"data":0', '"data":null', '"msg":"org.springframework.web.bind.MissingServletRequestParameterException:RequiredIntegerparameter\'status\'isnotpresent"', '"msg":"控制失败"', '"type":null']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Control3.py", line 178, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError



>>> cases\API\Control4.py

[ suite setup ] cases\API\Control4.py
返回token

* API_3016  -  2021-06-04 09:43:52

  [ case execution steps ]
控制接口：PA控制接口 测试     #3.4
前置条件：token正确，'pointName':'ZGZ.BAS.ZM.CONTROL.ddocb04_1'正确
预期结果:
{
    "status": "success", 
    "msg": "控制成功", 
    "code": 0, 
    "type": null, 
    "data": null
}
        
测试结果：
{
    "status": "false",
    "msg": "org.springframework.web.bind.MissingServletRequestParameterException: Required Integer parameter 'status' is not present",
    "code": 500,
    "data": null
}

对比结果：
['"code":0', '"code":500', '"msg":"org.springframework.web.bind.MissingServletRequestParameterException:RequiredIntegerparameter\'status\'isnotpresent"', '"msg":"控制成功"', '"status":"false"', '"status":"success"', '"type":null']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Control4.py", line 46, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_3017  -  2021-06-04 09:43:52

  [ case execution steps ]
控制接口：PA控制接口 测试     #3.4
前置条件：token过期，'pointName':'ZGZ.BAS.ZM.CONTROL.ddocb04_1'正确
预期结果:
{
    "status": "false", 
    "msg": "控制失败", 
    "code": 1, 
    "type": null, 
    "data": 0
}
        
测试结果：
{
    "msg": "用户未登录！",
    "code": 401,
    "status": "false"
}

对比结果：
['"code":1', '"code":401', '"data":0', '"msg":"控制失败"', '"msg":"用户未登录！"', '"type":null']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Control4.py", line 81, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_3018  -  2021-06-04 09:43:52

  [ case execution steps ]
控制接口：PA控制接口 测试     #3.4
前置条件：token 不填，'pointName':'ZGZ.BAS.ZM.CONTROL.ddocb04_1'正确
预期结果:
{
    "status": "false", 
    "msg": "控制失败", 
    "code": 1, 
    "type": null, 
    "data": 0
}
        
测试结果：
{
    "msg": "用户未登录！",
    "code": 401,
    "status": "false"
}

对比结果：
['"code":1', '"code":401', '"data":0', '"msg":"控制失败"', '"msg":"用户未登录！"', '"type":null']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Control4.py", line 114, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_3019  -  2021-06-04 09:43:52

  [ case execution steps ]
控制接口：PA控制接口 测试     #3.4
前置条件：token正确，'pointName':'ZGZ.PSD.CONTROL.ddocb_0'错误，PSD的控点存在，但不在目标控点内
预期结果:
{
    "status": "false", 
    "msg": "控制失败", 
    "code": 1, 
    "type": null, 
    "data": 0
}
        
测试结果：
{
    "status": "false",
    "msg": "org.springframework.web.bind.MissingServletRequestParameterException: Required Integer parameter 'status' is not present",
    "code": 500,
    "data": null
}

对比结果：
['"code":1', '"code":500', '"data":0', '"data":null', '"msg":"org.springframework.web.bind.MissingServletRequestParameterException:RequiredIntegerparameter\'status\'isnotpresent"', '"msg":"控制失败"', '"type":null']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Control4.py", line 147, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_3020  -  2021-06-04 09:43:52

  [ case execution steps ]
控制接口：PA控制接口 测试     #3.4
前置条件：token 正确， pointName 为空
预期结果:
{
    "status": "false", 
    "msg": "控制失败", 
    "code": 1, 
    "type": null, 
    "data": 0
}
        
测试结果：
{
    "status": "false",
    "msg": "org.springframework.web.bind.MissingServletRequestParameterException: Required Integer parameter 'status' is not present",
    "code": 500,
    "data": null
}

对比结果：
['"code":1', '"code":500', '"data":0', '"data":null', '"msg":"org.springframework.web.bind.MissingServletRequestParameterException:RequiredIntegerparameter\'status\'isnotpresent"', '"msg":"控制失败"', '"type":null']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Control4.py", line 178, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError



>>> cases\API\Login_API_Test.py

* API_1001  -  2021-06-04 09:43:52

  [ case execution steps ]
权限接口：用户，密码，token 测试   #1
前置条件：用户名 ****************** 正确，密码 ****************** 正确
预期结果:
{
    "status": "success",
    "msg": "请求成功",
    "code": 0,
    "type": null,
    "data": {"token":
    "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlS2V5IjoiUExBVEZPUk1fVVNFUiIsInVzZXJOYW1lIjoicGNhZG1pbiIsImV4cCI6MTYwNjc4NzQyMSwidXNlcklkIjoiMWJkODAwZTItZGM5MS00YWQ3LTlmMWUtNWNjMWFlZTA2NDdjIn0.B8nraLr342tuiPkGYwkH6hKrc_gZXjFqC20pFFEdI3A"
    }
}
        
测试结果：
{
    "status": "success",
    "msg": "获取token成功！",
    "code": 0,
    "data": {
        "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlS2V5IjoiIiwidXNlck5hbWUiOiJ5enlhZG1pbiIsImV4cCI6MTYyMjg1NzQzMCwidXNlcklkIjoieXp5YWRtaW4ifQ.emFPUPZTCnzrZrphz_laJKOWTFxhj61p-yD34XRLrH8"
    }
}

对比结果：
{'"msg":"获取token成功！"', '"data":"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlS2V5IjoiUExBVEZPUk1fVVNFUiIsInVzZXJOYW1lIjoicGNhZG1pbiIsImV4cCI6MTYwNjc4NzQyMSwidXNlcklkIjoiMWJkODAwZTItZGM5MS00YWQ3LTlmMWUtNWNjMWFlZTA2NDdjIn0.B8nraLr342tuiPkGYwkH6hKrc_gZXjFqC20pFFEdI3A"', '"type":null', '"msg":"请求成功"', '"data":"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlS2V5IjoiIiwidXNlck5hbWUiOiJ5enlhZG1pbiIsImV4cCI6MTYyMjg1NzQzMCwidXNlcklkIjoieXp5YWRtaW4ifQ.emFPUPZTCnzrZrphz_laJKOWTFxhj61p-yD34XRLrH8"'}

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Login_API_Test.py", line 32, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_1002  -  2021-06-04 09:43:52

  [ case execution steps ]
权限接口：用户，密码，token 测试   #1
前置条件：用户名 ****************** 正确，密码 “'?cha查囓あØŌД₪∝⑧┿●﹌ㄝ   2333” 错误
预期结果:
{
    "status": "false",
    "msg": "请求失败",
    "code": 1,
    "type": null,
    "data": null
}
            
测试结果：
{
    "status": "false",
    "msg": "账号密码不匹配！",
    "code": 1,
    "data": null
}

对比结果：
{'"msg":"账号密码不匹配！"', '"msg":"请求失败"', '"type":null'}

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Login_API_Test.py", line 59, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_1003  -  2021-06-04 09:43:53

  [ case execution steps ]
权限接口：用户，密码，token 测试   #1
前置条件：用户名错误，密码正确
预期结果:
{
    "status": "false",
    "msg": "请求失败",
    "code": 1,
    "type": null,
    "data": null
}
            
测试结果：
{
    "status": "false",
    "msg": "账号密码不匹配！",
    "code": 1,
    "data": null
}

对比结果：
{'"msg":"账号密码不匹配！"', '"msg":"请求失败"', '"type":null'}

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Login_API_Test.py", line 86, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_1004  -  2021-06-04 09:43:53

  [ case execution steps ]
权限接口：用户，密码，token 测试   #1
前置条件：用户名 ****************** 错误，密码 ****************** 错误
预期结果:
{
    "status": "false",
    "msg": "请求失败",
    "code": 1,
    "type": null,
    "data": null
}
            
测试结果：
{
    "status": "false",
    "msg": "账号密码不匹配！",
    "code": 1,
    "data": null
}

对比结果：
{'"msg":"账号密码不匹配！"', '"msg":"请求失败"', '"type":null'}

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Login_API_Test.py", line 112, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_1005  -  2021-06-04 09:43:53

  [ case execution steps ]
权限接口：用户，密码，token 测试   #1
前置条件：只有用户名 ******************
预期结果:
{
    "status": "false",
    "msg": "请求失败",
    "code": 1,
    "type": null,
    "data": null
}
            
测试结果：
{
    "status": "false",
    "msg": "密码不能为空！",
    "code": 1,
    "data": null
}

对比结果：
{'"msg":"请求失败"', '"type":null', '"msg":"密码不能为空！"'}

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Login_API_Test.py", line 138, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_1006  -  2021-06-04 09:43:53

  [ case execution steps ]
权限接口：用户，密码，token 测试   #1
前置条件：只有密码 ******************
预期结果:
{
    "status": "false",
    "msg": "请求失败",
    "code": 1,
    "type": null,
    "data": null
}
            
测试结果：
{
    "status": "false",
    "msg": "账号不能为空！",
    "code": 1,
    "data": null
}

对比结果：
{'"msg":"账号不能为空！"', '"msg":"请求失败"', '"type":null'}

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Login_API_Test.py", line 165, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_1007  -  2021-06-04 09:43:53

  [ case execution steps ]
权限接口：用户，密码，token 测试   #1
前置条件：只有用户名 ******************&****************** 
预期结果:
{
    "status": "false",
    "msg": "请求失败",
    "code": 1,
    "type": null,
    "data": null
}
            
测试结果：
{
    "status": "false",
    "msg": "密码不能为空！",
    "code": 1,
    "data": null
}

对比结果：
{'"msg":"请求失败"', '"type":null', '"msg":"密码不能为空！"'}

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Login_API_Test.py", line 192, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_1008  -  2021-06-04 09:43:53

  [ case execution steps ]
权限接口：用户，密码，token 测试   #1
前置条件：只有密码 ******************&******************
预期结果:
{
    "status": "false",
    "msg": "请求失败",
    "code": 1,
    "type": null,
    "data": null
}
            
测试结果：
{
    "status": "false",
    "msg": "账号不能为空！",
    "code": 1,
    "data": null
}

对比结果：
{'"msg":"账号不能为空！"', '"msg":"请求失败"', '"type":null'}

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Login_API_Test.py", line 218, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_1009  -  2021-06-04 09:43:53

  [ case execution steps ]
权限接口：用户，密码，token 测试   #1
'userAccount'为空, 'password'为空
预期结果:
{
    "status": "false",
    "msg": "请求失败",
    "code": 1,
    "type": null,
    "data": null
}
            
测试结果：
{
    "status": "false",
    "msg": "org.springframework.http.converter.HttpMessageNotReadableException: Required request body is missing: public com.zkxz.common.vo.ResultVo com.zkxz.auth.controller.TokenController.userToken(com.alibaba.fastjson.JSONObject,javax.servlet.http.HttpServletResponse,javax.servlet.http.HttpServletRequest)",
    "code": 500,
    "data": null
}

对比结果：
{'javax.servlet.http.HttpServletResponse', '"msg":"org.springframework.http.converter.HttpMessageNotReadableException:Requiredrequestbodyismissing:publiccom.zkxz.common.vo.ResultVocom.zkxz.auth.controller.TokenController.userToken(com.alibaba.fastjson.JSONObject', 'javax.servlet.http.HttpServletRequest)"', '"code":500', '"msg":"请求失败"', '"type":null', '"code":1'}

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Login_API_Test.py", line 245, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError



>>> cases\API\Point1.py

[ suite setup ] cases\API\Point1.py
返回token

* API_2001  -  2021-06-04 09:43:53

  [ case execution steps ]
数据点监控接口：查询设备信息 测试     #2.1
前置条件：token正确，locationId不填
预期结果:
{
    "status": "success",
    "msg": "查询成功",
    "code": 0,
    "type": null,
    "data": [
        {
            "deviceName": "AFC001",
            "deviceDesc": "AFC001",
            "locationId": 349,
            "subAppName": "AFC",
            "subAppDesc": "自动售检票系统（AFC）",
            "pkeyId": 99744368
        },
        {
            "deviceName": "AFC002",
            "deviceDesc": "AFC002",
            "locationId": 349,
            "subAppName": "AFC",
            "subAppDesc": "自动售检票系统（AFC）",
            "pkeyId": 99744369
        }
    ]
}
        
测试结果：
{
    "status": "success",
    "msg": "查询成功",
    "code": 0,
    "type": null,
    "data": [
        {
            "id": 106,
            "subAppName": "ACS",
            "subAppDesc": "门禁系统（ACS）"
        },
        {
            "id": 104,
            "subAppName": "AFC",
            "subAppDesc": "自动售检票系统（AFC）"
        },
        {
            "id": 102,
            "subAppName": "BAS",
            "subAppDesc": "环境与设备监控系统（BAS）"
        },
        {
            "id": 105,
            "subAppName": "CCTV",
            "subAppDesc": "闭路电视监控系统（CCTV）"
        },
        {
            "id": 108,
            "subAppName": "CLK",
            "subAppDesc": "时钟系统（CLK）"
        },
        {
            "id": 101,
            "subAppName": "FAS",
            "subAppDesc": "火灾自动报警系统（FAS）"
        },
        {
            "id": 109,
            "subAppName": "PA",
            "subAppDesc": "广播系统（PA）"
        },
        {
            "id": 110,
            "subAppName": "PIS",
            "subAppDesc": "乘客信息系统（PIS）"
        },
        {
            "id": 100,
            "subAppName": "PSCADA",
            "subAppDesc": "电力监控系统（SCADA）"
        },
        {
            "id": 103,
            "subAppName": "PSD",
            "subAppDesc": "站台门（PSD）"
        },
        {
            "id": 107,
            "subAppName": "SIG",
            "subAppDesc": "信号系统（SIG）"
        }
    ]
}

对比结果：
['"data":"deviceName":"AFC001"', '"data":"id":106', '"deviceDesc":"AFC001"', '"deviceDesc":"AFC002"', '"deviceName":"AFC002"', '"id":100', '"id":101', '"id":102', '"id":103', '"id":104', '"id":105', '"id":107', '"id":108', '"id":109', '"id":110', '"locationId":349', '"pkeyId":99744368', '"pkeyId":99744369', '"subAppDesc":"乘客信息系统（PIS）"', '"subAppDesc":"信号系统（SIG）"', '"subAppDesc":"广播系统（PA）"', '"subAppDesc":"时钟系统（CLK）"', '"subAppDesc":"火灾自动报警系统（FAS）"', '"subAppDesc":"环境与设备监控系统（BAS）"', '"subAppDesc":"电力监控系统（SCADA）"', '"subAppDesc":"站台门（PSD）"', '"subAppDesc":"门禁系统（ACS）"', '"subAppDesc":"闭路电视监控系统（CCTV）"', '"subAppName":"ACS"', '"subAppName":"BAS"', '"subAppName":"CCTV"', '"subAppName":"CLK"', '"subAppName":"FAS"', '"subAppName":"PA"', '"subAppName":"PIS"', '"subAppName":"PSCADA"', '"subAppName":"PSD"', '"subAppName":"SIG"']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Point1.py", line 61, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_2002  -  2021-06-04 09:43:53

  [ case execution steps ]
数据点监控接口：查询设备信息 测试     #2.1
前置条件：token为空，locationId不填
预期结果:
{
    "status": "false",
    "msg": "请求失败",
    "code": 1,
    "type": null,
    "data": 0
}
        
测试结果：
{
    "msg": "用户未登录！",
    "code": 401,
    "status": "false"
}

对比结果：
['"code":1', '"code":401', '"data":0', '"msg":"用户未登录！"', '"msg":"请求失败"', '"type":null']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Point1.py", line 92, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_2003  -  2021-06-04 09:43:53

  [ case execution steps ]
数据点监控接口：查询设备信息 测试     #2.1
前置条件：token过期，locationId不填
预期结果:
{
    "status": "false",
    "msg": "请求失败",
    "code": 1,
    "type": null,
    "data": 0
}
        
测试结果：
{
    "msg": "用户未登录！",
    "code": 401,
    "status": "false"
}

对比结果：
['"code":1', '"code":401', '"data":0', '"msg":"用户未登录！"', '"msg":"请求失败"', '"type":null']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Point1.py", line 123, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_2004  -  2021-06-04 09:43:53

  [ case execution steps ]
数据点监控接口：查询设备信息 测试     #2.1
前置条件：token正确，locationId：349 正确
预期结果:
{
    "status": "success",
    "msg": "查询成功",
    "code": 0,
    "type": null,
    "data": [
        {
            "deviceName": "AFC001",
            "deviceDesc": "AFC001",
            "locationId": 349,
            "subAppName": "AFC",
            "subAppDesc": "自动售检票系统（AFC）",
            "pkeyId": 99744368
        },
        {
            "deviceName": "AFC002",
            "deviceDesc": "AFC002",
            "locationId": 349,
            "subAppName": "AFC",
            "subAppDesc": "自动售检票系统（AFC）",
            "pkeyId": 99744369
        }
    ]
}
        
测试结果：
{
    "status": "success",
    "msg": "查询成功",
    "code": 0,
    "type": null,
    "data": [
        {
            "id": 106,
            "subAppName": "ACS",
            "subAppDesc": "门禁系统（ACS）"
        },
        {
            "id": 104,
            "subAppName": "AFC",
            "subAppDesc": "自动售检票系统（AFC）"
        },
        {
            "id": 102,
            "subAppName": "BAS",
            "subAppDesc": "环境与设备监控系统（BAS）"
        },
        {
            "id": 105,
            "subAppName": "CCTV",
            "subAppDesc": "闭路电视监控系统（CCTV）"
        },
        {
            "id": 108,
            "subAppName": "CLK",
            "subAppDesc": "时钟系统（CLK）"
        },
        {
            "id": 101,
            "subAppName": "FAS",
            "subAppDesc": "火灾自动报警系统（FAS）"
        },
        {
            "id": 109,
            "subAppName": "PA",
            "subAppDesc": "广播系统（PA）"
        },
        {
            "id": 110,
            "subAppName": "PIS",
            "subAppDesc": "乘客信息系统（PIS）"
        },
        {
            "id": 100,
            "subAppName": "PSCADA",
            "subAppDesc": "电力监控系统（SCADA）"
        },
        {
            "id": 103,
            "subAppName": "PSD",
            "subAppDesc": "站台门（PSD）"
        },
        {
            "id": 107,
            "subAppName": "SIG",
            "subAppDesc": "信号系统（SIG）"
        }
    ]
}

对比结果：
['"data":"deviceName":"AFC001"', '"data":"id":106', '"deviceDesc":"AFC001"', '"deviceDesc":"AFC002"', '"deviceName":"AFC002"', '"id":100', '"id":101', '"id":102', '"id":103', '"id":104', '"id":105', '"id":107', '"id":108', '"id":109', '"id":110', '"locationId":349', '"pkeyId":99744368', '"pkeyId":99744369', '"subAppDesc":"乘客信息系统（PIS）"', '"subAppDesc":"信号系统（SIG）"', '"subAppDesc":"广播系统（PA）"', '"subAppDesc":"时钟系统（CLK）"', '"subAppDesc":"火灾自动报警系统（FAS）"', '"subAppDesc":"环境与设备监控系统（BAS）"', '"subAppDesc":"电力监控系统（SCADA）"', '"subAppDesc":"站台门（PSD）"', '"subAppDesc":"门禁系统（ACS）"', '"subAppDesc":"闭路电视监控系统（CCTV）"', '"subAppName":"ACS"', '"subAppName":"BAS"', '"subAppName":"CCTV"', '"subAppName":"CLK"', '"subAppName":"FAS"', '"subAppName":"PA"', '"subAppName":"PIS"', '"subAppName":"PSCADA"', '"subAppName":"PSD"', '"subAppName":"SIG"']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Point1.py", line 173, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_2005  -  2021-06-04 09:43:53

  [ case execution steps ]
数据点监控接口：查询设备信息 测试     #2.1
前置条件：token 正确，'locationId':347错误，虽然347存在，但不在目标location内
预期结果:
{
    "status": "false",
    "msg": "请求失败",
    "code": 1,
    "type": null,
    "data": 0
}
        
测试结果：
{
    "status": "success",
    "msg": "查询成功",
    "code": 0,
    "type": null,
    "data": [
        {
            "id": 106,
            "subAppName": "ACS",
            "subAppDesc": "门禁系统（ACS）"
        },
        {
            "id": 104,
            "subAppName": "AFC",
            "subAppDesc": "自动售检票系统（AFC）"
        },
        {
            "id": 102,
            "subAppName": "BAS",
            "subAppDesc": "环境与设备监控系统（BAS）"
        },
        {
            "id": 105,
            "subAppName": "CCTV",
            "subAppDesc": "闭路电视监控系统（CCTV）"
        },
        {
            "id": 108,
            "subAppName": "CLK",
            "subAppDesc": "时钟系统（CLK）"
        },
        {
            "id": 101,
            "subAppName": "FAS",
            "subAppDesc": "火灾自动报警系统（FAS）"
        },
        {
            "id": 109,
            "subAppName": "PA",
            "subAppDesc": "广播系统（PA）"
        },
        {
            "id": 110,
            "subAppName": "PIS",
            "subAppDesc": "乘客信息系统（PIS）"
        },
        {
            "id": 100,
            "subAppName": "PSCADA",
            "subAppDesc": "电力监控系统（SCADA）"
        },
        {
            "id": 103,
            "subAppName": "PSD",
            "subAppDesc": "站台门（PSD）"
        },
        {
            "id": 107,
            "subAppName": "SIG",
            "subAppDesc": "信号系统（SIG）"
        }
    ]
}

对比结果：
['"code":0', '"code":1', '"data":"id":106', '"data":0', '"id":100', '"id":101', '"id":102', '"id":103', '"id":104', '"id":105', '"id":107', '"id":108', '"id":109', '"id":110', '"msg":"查询成功"', '"msg":"请求失败"', '"status":"false"', '"status":"success"', '"subAppDesc":"乘客信息系统（PIS）"', '"subAppDesc":"信号系统（SIG）"', '"subAppDesc":"广播系统（PA）"', '"subAppDesc":"时钟系统（CLK）"', '"subAppDesc":"火灾自动报警系统（FAS）"', '"subAppDesc":"环境与设备监控系统（BAS）"', '"subAppDesc":"电力监控系统（SCADA）"', '"subAppDesc":"站台门（PSD）"', '"subAppDesc":"自动售检票系统（AFC）"', '"subAppDesc":"门禁系统（ACS）"', '"subAppDesc":"闭路电视监控系统（CCTV）"', '"subAppName":"ACS"', '"subAppName":"AFC"', '"subAppName":"BAS"', '"subAppName":"CCTV"', '"subAppName":"CLK"', '"subAppName":"FAS"', '"subAppName":"PA"', '"subAppName":"PIS"', '"subAppName":"PSCADA"', '"subAppName":"PSD"', '"subAppName":"SIG"']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Point1.py", line 205, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError



>>> cases\API\Point2.py

[ suite setup ] cases\API\Point2.py
返回token

* API_2006  -  2021-06-04 09:43:53

  [ case execution steps ]
数据点监控接口：通过子系统查询设备实时状态信息 测试     #2.2
前置条件：token正确，appName: AFC%2CPSD%2CBAS 正确，locationId不填
预期结果:
{
    "status": "success", 
    "msg": "查询成功", 
    "code": 0, 
    "type": null, 
    "data": [
        {
            "subAppName": "BAS", 
            "deviceList": [
                {
                    "deviceName": "ESCALATOR002", 
                    "pointList": [
                        {
                            "keyId": 98610722, 
                            "pointName": "ZGZ.BAS.DFT.ESCALATOR02.ddicb.Value", 
                            "dataPtDesc": "电扶梯02关闭状态", 
                            "value": "0", 
                            "deviceName": "ESCALATOR002", 
                            "subAppName": "BAS"
                        }
                    ]
                }, 
                {
                    "deviceName": "ESCALATOR003", 
                    "pointList": [
                        {
                            "keyId": 98610725, 
                            "pointName": "ZGZ.BAS.DFT.ESCALATOR03.ddicb.Value", 
                            "dataPtDesc": "电扶梯03关闭状态", 
                            "value": "0", 
                            "deviceName": "ESCALATOR003", 
                            "subAppName": "BAS"
                        }
                    ]
                }, 
                {
                    "deviceName": "ESCALATOR004", 
                    "pointList": [
                        {
                            "keyId": 98610728, 
                            "pointName": "ZGZ.BAS.DFT.ESCALATOR04.ddicb.Value", 
                            "dataPtDesc": "电扶梯04关闭状态", 
                            "value": "0", 
                            "deviceName": "ESCALATOR004", 
                            "subAppName": "BAS"
                        }
                    ]
                }
            ]
        }
    ]
}
        
测试结果：
{
    "status": "success",
    "msg": "查询成功",
    "code": 0,
    "type": null,
    "data": [
        {
            "subAppName": "BAS",
            "deviceList": [
                {
                    "deviceName": "ESCALATOR002",
                    "pointList": [
                        {
                            "keyId": 98610722,
                            "pointName": "ZGZ.BAS.DFT.ESCALATOR02.ddicb.Value",
                            "dataPtDesc": "开启",
                            "value": "0",
                            "deviceName": "ESCALATOR002",
                            "subAppName": "BAS"
                        }
                    ]
                },
                {
                    "deviceName": "ESCALATOR003",
                    "pointList": [
                        {
                            "keyId": 98610725,
                            "pointName": "ZGZ.BAS.DFT.ESCALATOR03.ddicb.Value",
                            "dataPtDesc": "开启",
                            "value": "0",
                            "deviceName": "ESCALATOR003",
                            "subAppName": "BAS"
                        }
                    ]
                },
                {
                    "deviceName": "ESCALATOR004",
                    "pointList": [
                        {
                            "keyId": 98610728,
                            "pointName": "ZGZ.BAS.DFT.ESCALATOR04.ddicb.Value",
                            "dataPtDesc": "开启",
                            "value": "0",
                            "deviceName": "ESCALATOR004",
                            "subAppName": "BAS"
                        }
                    ]
                },
                {
                    "deviceName": "FJM001",
                    "pointList": [
                        {
                            "keyId": 98610784,
                            "pointName": "ZGZ.BAS.FJM.FJM01.ddicb01.Value",
                            "dataPtDesc": "开启",
                            "value": "0",
                            "deviceName": "FJM001",
                            "subAppName": "BAS"
                        }
                    ]
                },
                {
                    "deviceName": "FJM002",
                    "pointList": [
                        {
                            "keyId": 98610787,
                            "pointName": "ZGZ.BAS.FJM.FJM02.ddicb01.Value",
                            "dataPtDesc": "开启",
                            "value": "0",
                            "deviceName": "FJM002",
                            "subAppName": "BAS"
                        }
                    ]
                },
                {
                    "deviceName": "ZM001",
                    "pointList": [
                        {
                            "keyId": 98610746,
                            "pointName": "ZGZ.BAS.ZM.ILLUMINATION01.ddicb01.Value",
                            "dataPtDesc": "关闭",
                            "value": "1",
                            "deviceName": "ZM001",
                            "subAppName": "BAS"
                        }
                    ]
                },
                {
                    "deviceName": "ZM002",
                    "pointList": [
                        {
                            "keyId": 98610749,
                            "pointName": "ZGZ.BAS.ZM.ILLUMINATION02.ddicb01.Value",
                            "dataPtDesc": "关闭",
                            "value": "1",
                            "deviceName": "ZM002",
                            "subAppName": "BAS"
                        }
                    ]
                }
            ]
        },
        {
            "subAppName": "AFC",
            "deviceList": [
                {
                    "deviceName": "AFC001",
                    "pointList": [
                        {
                            "keyId": 98609913,
                            "pointName": "ZGZ.AFC.AGM1.ddiopen.Value",
                            "dataPtDesc": "关闭",
                            "value": "1",
                            "deviceName": "AFC001",
                            "subAppName": "AFC"
                        }
                    ]
                },
                {
                    "deviceName": "AFC002",
                    "pointList": [
                        {
                            "keyId": 98609949,
                            "pointName": "ZGZ.AFC.AGM10.ddiopen.Value",
                            "dataPtDesc": "关闭",
                            "value": "1",
                            "deviceName": "AFC002",
                            "subAppName": "AFC"
                        }
                    ]
                },
                {
                    "deviceName": "AFC003",
                    "pointList": [
                        {
                            "keyId": 98609954,
                            "pointName": "ZGZ.AFC.AGM11.ddiclose.Value",
                            "dataPtDesc": "开启",
                            "value": "0",
                            "deviceName": "AFC003",
                            "subAppName": "AFC"
                        }
                    ]
                },
                {
                    "deviceName": "AFC004",
                    "pointList": [
                        {
                            "keyId": 98609957,
                            "pointName": "ZGZ.AFC.AGM12.ddiopen.Value",
                            "dataPtDesc": "关闭",
                            "value": "1",
                            "deviceName": "AFC004",
                            "subAppName": "AFC"
                        }
                    ]
                },
                {
                    "deviceName": "AFC005",
                    "pointList": [
                        {
                            "keyId": 98609961,
                            "pointName": "ZGZ.AFC.AGM13.ddiopen.Value",
                            "dataPtDesc": "关闭",
                            "value": "1",
                            "deviceName": "AFC005",
                            "subAppName": "AFC"
                        }
                    ]
                }
            ]
        }
    ]
}

对比结果：
['"dataPtDesc":"关闭"', '"dataPtDesc":"开启"', '"dataPtDesc":"电扶梯02关闭状态"', '"dataPtDesc":"电扶梯03关闭状态"', '"dataPtDesc":"电扶梯04关闭状态"', '"deviceList":"deviceName":"AFC001"', '"deviceName":"AFC001"', '"deviceName":"AFC002"', '"deviceName":"AFC003"', '"deviceName":"AFC004"', '"deviceName":"AFC005"', '"deviceName":"FJM001"', '"deviceName":"FJM002"', '"deviceName":"ZM001"', '"deviceName":"ZM002"', '"pointList":"keyId":98609913', '"pointList":"keyId":98609949', '"pointList":"keyId":98609954', '"pointList":"keyId":98609957', '"pointList":"keyId":98609961', '"pointList":"keyId":98610746', '"pointList":"keyId":98610749', '"pointList":"keyId":98610784', '"pointList":"keyId":98610787', '"pointName":"ZGZ.AFC.AGM1.ddiopen.Value"', '"pointName":"ZGZ.AFC.AGM10.ddiopen.Value"', '"pointName":"ZGZ.AFC.AGM11.ddiclose.Value"', '"pointName":"ZGZ.AFC.AGM12.ddiopen.Value"', '"pointName":"ZGZ.AFC.AGM13.ddiopen.Value"', '"pointName":"ZGZ.BAS.FJM.FJM01.ddicb01.Value"', '"pointName":"ZGZ.BAS.FJM.FJM02.ddicb01.Value"', '"pointName":"ZGZ.BAS.ZM.ILLUMINATION01.ddicb01.Value"', '"pointName":"ZGZ.BAS.ZM.ILLUMINATION02.ddicb01.Value"', '"subAppName":"AFC"', '"value":"1"']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Point2.py", line 90, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_2007  -  2021-06-04 09:43:54

  [ case execution steps ]
数据点监控接口：通过子系统查询设备实时状态信息 测试     #2.2
前置条件：token过期，appName: AFC%2CPSD%2CBAS 正确，locationId不填
预期结果:
{
    "status": "false",
    "msg": "请求失败",
    "code": 1,
    "type": null,
    "data": 0
}
        
测试结果：
{
    "msg": "用户未登录！",
    "code": 401,
    "status": "false"
}

对比结果：
['"code":1', '"code":401', '"data":0', '"msg":"用户未登录！"', '"msg":"请求失败"', '"type":null']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Point2.py", line 124, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_2008  -  2021-06-04 09:43:54

  [ case execution steps ]
数据点监控接口：通过子系统查询设备实时状态信息 测试     #2.2
前置条件：token为空，appName: AFC%2CPSD%2CBAS 正确，locationId不填
预期结果:
{
    "status": "false",
    "msg": "请求失败",
    "code": 1,
    "type": null,
    "data": 0
}
        
测试结果：
{
    "msg": "用户未登录！",
    "code": 401,
    "status": "false"
}

对比结果：
['"code":1', '"code":401', '"data":0', '"msg":"用户未登录！"', '"msg":"请求失败"', '"type":null']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Point2.py", line 157, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_2009  -  2021-06-04 09:43:54

  [ case execution steps ]
数据点监控接口：通过子系统查询设备实时状态信息 测试     #2.2
前置条件：token正确，'appName': 'ECS%2CFYM'错误，虽然存在，但不再目标appName内，locationId不填
预期结果:
{
    "status": "false",
    "msg": "请求失败",
    "code": 1,
    "type": null,
    "data": 0
}
        
测试结果：
{
    "status": "success",
    "msg": "查询成功",
    "code": 0,
    "type": null,
    "data": []
}

对比结果：
['"code":0', '"code":1', '"data":', '"data":0', '"msg":"查询成功"', '"msg":"请求失败"', '"status":"false"', '"status":"success"']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Point2.py", line 192, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_2010  -  2021-06-04 09:43:54

  [ case execution steps ]
数据点监控接口：通过子系统查询设备实时状态信息 测试     #2.2
前置条件：token正确，appName 为空，locationId不填
预期结果:
{
    "status": "false",
    "msg": "请求失败",
    "code": 1,
    "type": null,
    "data": 0
}
        
测试结果：
{
    "status": "false",
    "msg": "子系统名称不能为空！",
    "code": 1,
    "type": null,
    "data": null
}

对比结果：
['"data":0', '"data":null', '"msg":"子系统名称不能为空！"', '"msg":"请求失败"']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Point2.py", line 224, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_2011  -  2021-06-04 09:43:54

  [ case execution steps ]
数据点监控接口：通过子系统查询设备实时状态信息 测试     #2.2
前置条件：token正确，appName: AFC%2CPSD%2CBAS 正确，locationId：349 正确
预期结果:
{
    "status": "success", 
    "msg": "查询成功", 
    "code": 0, 
    "type": null, 
    "data": [
        {
            "subAppName": "BAS", 
            "deviceList": [
                {
                    "deviceName": "ESCALATOR002", 
                    "pointList": [
                        {
                            "keyId": 98610722, 
                            "pointName": "ZGZ.BAS.DFT.ESCALATOR02.ddicb.Value", 
                            "dataPtDesc": "电扶梯02关闭状态", 
                            "value": "0", 
                            "deviceName": "ESCALATOR002", 
                            "subAppName": "BAS"
                        }
                    ]
                }, 
                {
                    "deviceName": "ESCALATOR003", 
                    "pointList": [
                        {
                            "keyId": 98610725, 
                            "pointName": "ZGZ.BAS.DFT.ESCALATOR03.ddicb.Value", 
                            "dataPtDesc": "电扶梯03关闭状态", 
                            "value": "0", 
                            "deviceName": "ESCALATOR003", 
                            "subAppName": "BAS"
                        }
                    ]
                }, 
                {
                    "deviceName": "ESCALATOR004", 
                    "pointList": [
                        {
                            "keyId": 98610728, 
                            "pointName": "ZGZ.BAS.DFT.ESCALATOR04.ddicb.Value", 
                            "dataPtDesc": "电扶梯04关闭状态", 
                            "value": "0", 
                            "deviceName": "ESCALATOR004", 
                            "subAppName": "BAS"
                        }
                    ]
                }
            ]
        }
    ]
}
        
测试结果：
{
    "status": "success",
    "msg": "查询成功",
    "code": 0,
    "type": null,
    "data": [
        {
            "subAppName": "BAS",
            "deviceList": [
                {
                    "deviceName": "ESCALATOR002",
                    "pointList": [
                        {
                            "keyId": 98610722,
                            "pointName": "ZGZ.BAS.DFT.ESCALATOR02.ddicb.Value",
                            "dataPtDesc": "开启",
                            "value": "0",
                            "deviceName": "ESCALATOR002",
                            "subAppName": "BAS"
                        }
                    ]
                },
                {
                    "deviceName": "ESCALATOR003",
                    "pointList": [
                        {
                            "keyId": 98610725,
                            "pointName": "ZGZ.BAS.DFT.ESCALATOR03.ddicb.Value",
                            "dataPtDesc": "开启",
                            "value": "0",
                            "deviceName": "ESCALATOR003",
                            "subAppName": "BAS"
                        }
                    ]
                },
                {
                    "deviceName": "ESCALATOR004",
                    "pointList": [
                        {
                            "keyId": 98610728,
                            "pointName": "ZGZ.BAS.DFT.ESCALATOR04.ddicb.Value",
                            "dataPtDesc": "开启",
                            "value": "0",
                            "deviceName": "ESCALATOR004",
                            "subAppName": "BAS"
                        }
                    ]
                },
                {
                    "deviceName": "FJM001",
                    "pointList": [
                        {
                            "keyId": 98610784,
                            "pointName": "ZGZ.BAS.FJM.FJM01.ddicb01.Value",
                            "dataPtDesc": "开启",
                            "value": "0",
                            "deviceName": "FJM001",
                            "subAppName": "BAS"
                        }
                    ]
                },
                {
                    "deviceName": "FJM002",
                    "pointList": [
                        {
                            "keyId": 98610787,
                            "pointName": "ZGZ.BAS.FJM.FJM02.ddicb01.Value",
                            "dataPtDesc": "开启",
                            "value": "0",
                            "deviceName": "FJM002",
                            "subAppName": "BAS"
                        }
                    ]
                },
                {
                    "deviceName": "ZM001",
                    "pointList": [
                        {
                            "keyId": 98610746,
                            "pointName": "ZGZ.BAS.ZM.ILLUMINATION01.ddicb01.Value",
                            "dataPtDesc": "关闭",
                            "value": "1",
                            "deviceName": "ZM001",
                            "subAppName": "BAS"
                        }
                    ]
                },
                {
                    "deviceName": "ZM002",
                    "pointList": [
                        {
                            "keyId": 98610749,
                            "pointName": "ZGZ.BAS.ZM.ILLUMINATION02.ddicb01.Value",
                            "dataPtDesc": "关闭",
                            "value": "1",
                            "deviceName": "ZM002",
                            "subAppName": "BAS"
                        }
                    ]
                }
            ]
        },
        {
            "subAppName": "AFC",
            "deviceList": [
                {
                    "deviceName": "AFC001",
                    "pointList": [
                        {
                            "keyId": 98609913,
                            "pointName": "ZGZ.AFC.AGM1.ddiopen.Value",
                            "dataPtDesc": "关闭",
                            "value": "1",
                            "deviceName": "AFC001",
                            "subAppName": "AFC"
                        }
                    ]
                },
                {
                    "deviceName": "AFC002",
                    "pointList": [
                        {
                            "keyId": 98609949,
                            "pointName": "ZGZ.AFC.AGM10.ddiopen.Value",
                            "dataPtDesc": "关闭",
                            "value": "1",
                            "deviceName": "AFC002",
                            "subAppName": "AFC"
                        }
                    ]
                },
                {
                    "deviceName": "AFC003",
                    "pointList": [
                        {
                            "keyId": 98609954,
                            "pointName": "ZGZ.AFC.AGM11.ddiclose.Value",
                            "dataPtDesc": "开启",
                            "value": "0",
                            "deviceName": "AFC003",
                            "subAppName": "AFC"
                        }
                    ]
                },
                {
                    "deviceName": "AFC004",
                    "pointList": [
                        {
                            "keyId": 98609957,
                            "pointName": "ZGZ.AFC.AGM12.ddiopen.Value",
                            "dataPtDesc": "关闭",
                            "value": "1",
                            "deviceName": "AFC004",
                            "subAppName": "AFC"
                        }
                    ]
                },
                {
                    "deviceName": "AFC005",
                    "pointList": [
                        {
                            "keyId": 98609961,
                            "pointName": "ZGZ.AFC.AGM13.ddiopen.Value",
                            "dataPtDesc": "关闭",
                            "value": "1",
                            "deviceName": "AFC005",
                            "subAppName": "AFC"
                        }
                    ]
                }
            ]
        }
    ]
}

对比结果：
['"dataPtDesc":"关闭"', '"dataPtDesc":"开启"', '"dataPtDesc":"电扶梯02关闭状态"', '"dataPtDesc":"电扶梯03关闭状态"', '"dataPtDesc":"电扶梯04关闭状态"', '"deviceList":"deviceName":"AFC001"', '"deviceName":"AFC001"', '"deviceName":"AFC002"', '"deviceName":"AFC003"', '"deviceName":"AFC004"', '"deviceName":"AFC005"', '"deviceName":"FJM001"', '"deviceName":"FJM002"', '"deviceName":"ZM001"', '"deviceName":"ZM002"', '"pointList":"keyId":98609913', '"pointList":"keyId":98609949', '"pointList":"keyId":98609954', '"pointList":"keyId":98609957', '"pointList":"keyId":98609961', '"pointList":"keyId":98610746', '"pointList":"keyId":98610749', '"pointList":"keyId":98610784', '"pointList":"keyId":98610787', '"pointName":"ZGZ.AFC.AGM1.ddiopen.Value"', '"pointName":"ZGZ.AFC.AGM10.ddiopen.Value"', '"pointName":"ZGZ.AFC.AGM11.ddiclose.Value"', '"pointName":"ZGZ.AFC.AGM12.ddiopen.Value"', '"pointName":"ZGZ.AFC.AGM13.ddiopen.Value"', '"pointName":"ZGZ.BAS.FJM.FJM01.ddicb01.Value"', '"pointName":"ZGZ.BAS.FJM.FJM02.ddicb01.Value"', '"pointName":"ZGZ.BAS.ZM.ILLUMINATION01.ddicb01.Value"', '"pointName":"ZGZ.BAS.ZM.ILLUMINATION02.ddicb01.Value"', '"subAppName":"AFC"', '"value":"1"']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Point2.py", line 304, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_2012  -  2021-06-04 09:43:54

  [ case execution steps ]
数据点监控接口：通过子系统查询设备实时状态信息 测试     #2.2
前置条件：token正确，appName: AFC%2CPSD%2CBAS 正确，'locationId':347错误，虽然347存在，但不在目标location内
预期结果:
{
    "status": "false",
    "msg": "请求失败",
    "code": 1,
    "type": null,
    "data": 0
}
        
测试结果：
{
    "status": "false",
    "msg": "设备链接异常",
    "code": 1,
    "type": null,
    "data": null
}

对比结果：
['"data":0', '"data":null', '"msg":"设备链接异常"', '"msg":"请求失败"']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Point2.py", line 338, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_2013  -  2021-06-04 09:44:04

  [ case execution steps ]
数据点监控接口：通过子系统查询设备实时状态信息 测试     #2.2
前置条件：token 为空，appName 为空，locationId 为空 正确
预期结果:
{
    "status": "false",
    "msg": "请求失败",
    "code": 1,
    "type": null,
    "data": 0
}
        
测试结果：
{
    "msg": "用户未登录！",
    "code": 401,
    "status": "false"
}

对比结果：
['"code":1', '"code":401', '"data":0', '"msg":"用户未登录！"', '"msg":"请求失败"', '"type":null']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Point2.py", line 371, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError



>>> cases\API\Point3.py

[ suite setup ] cases\API\Point3.py
返回token

* API_2014  -  2021-06-04 09:44:04

  [ case execution steps ]
数据点监控接口：设备实时状态查询 测试     #2.3
前置条件：token正确，deviceName：AFC001%2CAFC002%2CPA001%2CZM001 正确，locationId不填
预期结果:
{
    "status": "success", 
    "msg": "查询成功", 
    "code": 0, 
    "type": null, 
    "data": [
        {
            "deviceName": "AFC002", 
            "pointList": [
                {
                    "keyId": 98609949, 
                    "pointName": "ZGZ.AFC.AGM10.ddiopen.Value", 
                    "dataPtDesc": "AGM10开启状态", 
                    "value": "0", 
                    "deviceName": "AFC002"
                }
            ]
        }, 
        {
            "deviceName": "PA001", 
            "pointList": [
                {
                    "keyId": 98611064, 
                    "pointName": "ZGZ.PA.PA03.ddicb.Value", 
                    "dataPtDesc": "广播开启", 
                    "value": "0", 
                    "deviceName": "PA001"
                }
            ]
        }, 
        {
            "deviceName": "AFC001", 
            "pointList": [
                {
                    "keyId": 98609913, 
                    "pointName": "ZGZ.AFC.AGM1.ddiopen.Value", 
                    "dataPtDesc": "AGM1开启状态", 
                    "value": "1", 
                    "deviceName": "AFC001"
                }
            ]
        }, 
        {
            "deviceName": "ZM001", 
            "pointList": [
                {
                    "keyId": 98610746, 
                    "pointName": "ZGZ.BAS.ZM.ILLUMINATION01.ddicb01.Value", 
                    "dataPtDesc": "照明01开启状态", 
                    "value": "0", 
                    "deviceName": "ZM001"
                }
            ]
        }
    ]
}
        
测试结果：
{
    "status": "success",
    "msg": "查询成功",
    "code": 0,
    "type": null,
    "data": [
        {
            "deviceName": "AFC002",
            "pointList": [
                {
                    "keyId": 98609949,
                    "pointName": "ZGZ.AFC.AGM10.ddiopen.Value",
                    "dataPtDesc": "关闭",
                    "value": "1",
                    "deviceName": "AFC002",
                    "subAppName": "AFC"
                }
            ]
        },
        {
            "deviceName": "PA001",
            "pointList": [
                {
                    "keyId": 98611067,
                    "pointName": "ZGZ.PA.PA01.ddicb01.Value",
                    "dataPtDesc": "开启",
                    "value": "0",
                    "deviceName": "PA001",
                    "subAppName": "PA"
                }
            ]
        },
        {
            "deviceName": "AFC001",
            "pointList": [
                {
                    "keyId": 98609913,
                    "pointName": "ZGZ.AFC.AGM1.ddiopen.Value",
                    "dataPtDesc": "关闭",
                    "value": "1",
                    "deviceName": "AFC001",
                    "subAppName": "AFC"
                }
            ]
        },
        {
            "deviceName": "ZM001",
            "pointList": [
                {
                    "keyId": 98610746,
                    "pointName": "ZGZ.BAS.ZM.ILLUMINATION01.ddicb01.Value",
                    "dataPtDesc": "关闭",
                    "value": "1",
                    "deviceName": "ZM001",
                    "subAppName": "BAS"
                }
            ]
        }
    ]
}

对比结果：
['"dataPtDesc":"AGM10开启状态"', '"dataPtDesc":"AGM1开启状态"', '"dataPtDesc":"关闭"', '"dataPtDesc":"广播开启"', '"dataPtDesc":"开启"', '"dataPtDesc":"照明01开启状态"', '"pointList":"keyId":98611064', '"pointList":"keyId":98611067', '"pointName":"ZGZ.PA.PA01.ddicb01.Value"', '"pointName":"ZGZ.PA.PA03.ddicb.Value"', '"subAppName":"AFC"', '"subAppName":"BAS"', '"subAppName":"PA"']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Point3.py", line 94, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_2015  -  2021-06-04 09:44:04

  [ case execution steps ]
数据点监控接口：设备实时状态查询 测试     #2.3
前置条件：token过期，deviceName：AFC001%2CAFC002%2CPA001%2CZM001 正确，locationId不填
预期结果:
{
    "status": "false",
    "msg": "请求失败",
    "code": 1,
    "type": null,
    "data": 0
}
        
测试结果：
{
    "msg": "用户未登录！",
    "code": 401,
    "status": "false"
}

对比结果：
['"code":1', '"code":401', '"data":0', '"msg":"用户未登录！"', '"msg":"请求失败"', '"type":null']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Point3.py", line 128, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_2016  -  2021-06-04 09:44:04

  [ case execution steps ]
数据点监控接口：设备实时状态查询 测试     #2.3
前置条件：token 为空，deviceName：AFC001%2CAFC002%2CPA001%2CZM001 正确，locationId不填
预期结果:
{
    "status": "false",
    "msg": "请求失败",
    "code": 1,
    "type": null,
    "data": 0
}
        
测试结果：
{
    "msg": "用户未登录！",
    "code": 401,
    "status": "false"
}

对比结果：
['"code":1', '"code":401', '"data":0', '"msg":"用户未登录！"', '"msg":"请求失败"', '"type":null']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Point3.py", line 161, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_2017  -  2021-06-04 09:44:04

  [ case execution steps ]
数据点监控接口：设备实时状态查询 测试     #2.3
前置条件：token正确，'deviceName': 'ECS%2CFYM'错误，虽然存在，但不再目标deviceName内，locationId不填
预期结果:
{
    "status": "false",
    "msg": "请求失败",
    "code": 1,
    "type": null,
    "data": 0
}
        
测试结果：
{
    "status": "success",
    "msg": "查询成功",
    "code": 0,
    "type": null,
    "data": []
}

对比结果：
['"code":0', '"code":1', '"data":', '"data":0', '"msg":"查询成功"', '"msg":"请求失败"', '"status":"false"', '"status":"success"']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Point3.py", line 196, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_2018  -  2021-06-04 09:44:04

  [ case execution steps ]
数据点监控接口：设备实时状态查询 测试     #2.3
前置条件：token正确，deviceName 为空，locationId不填
预期结果:
{
    "status": "false",
    "msg": "请求失败",
    "code": 1,
    "type": null,
    "data": 0
}
        
测试结果：
{
    "status": "false",
    "msg": "设备名称不能为空！",
    "code": 1,
    "type": null,
    "data": null
}

对比结果：
['"data":0', '"data":null', '"msg":"设备名称不能为空！"', '"msg":"请求失败"']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Point3.py", line 228, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_2019  -  2021-06-04 09:44:04

  [ case execution steps ]
数据点监控接口：设备实时状态查询 测试     #2.3
前置条件：token正确，deviceName：AFC001%2CAFC002%2CPA001%2CZM001 正确，locationId：349 正确
预期结果:
{
    "status": "success", 
    "msg": "查询成功", 
    "code": 0, 
    "type": null, 
    "data": [
        {
            "deviceName": "AFC002", 
            "pointList": [
                {
                    "keyId": 98609949, 
                    "pointName": "ZGZ.AFC.AGM10.ddiopen.Value", 
                    "dataPtDesc": "AGM10开启状态", 
                    "value": "0", 
                    "deviceName": "AFC002"
                }
            ]
        }, 
        {
            "deviceName": "PA001", 
            "pointList": [
                {
                    "keyId": 98611064, 
                    "pointName": "ZGZ.PA.PA03.ddicb.Value", 
                    "dataPtDesc": "广播开启", 
                    "value": "0", 
                    "deviceName": "PA001"
                }
            ]
        }, 
        {
            "deviceName": "AFC001", 
            "pointList": [
                {
                    "keyId": 98609913, 
                    "pointName": "ZGZ.AFC.AGM1.ddiopen.Value", 
                    "dataPtDesc": "AGM1开启状态", 
                    "value": "1", 
                    "deviceName": "AFC001"
                }
            ]
        }, 
        {
            "deviceName": "ZM001", 
            "pointList": [
                {
                    "keyId": 98610746, 
                    "pointName": "ZGZ.BAS.ZM.ILLUMINATION01.ddicb01.Value", 
                    "dataPtDesc": "照明01开启状态", 
                    "value": "0", 
                    "deviceName": "ZM001"
                }
            ]
        }
    ]
}
        
测试结果：
{
    "status": "success",
    "msg": "查询成功",
    "code": 0,
    "type": null,
    "data": [
        {
            "deviceName": "AFC002",
            "pointList": [
                {
                    "keyId": 98609949,
                    "pointName": "ZGZ.AFC.AGM10.ddiopen.Value",
                    "dataPtDesc": "关闭",
                    "value": "1",
                    "deviceName": "AFC002",
                    "subAppName": "AFC"
                }
            ]
        },
        {
            "deviceName": "PA001",
            "pointList": [
                {
                    "keyId": 98611067,
                    "pointName": "ZGZ.PA.PA01.ddicb01.Value",
                    "dataPtDesc": "开启",
                    "value": "0",
                    "deviceName": "PA001",
                    "subAppName": "PA"
                }
            ]
        },
        {
            "deviceName": "AFC001",
            "pointList": [
                {
                    "keyId": 98609913,
                    "pointName": "ZGZ.AFC.AGM1.ddiopen.Value",
                    "dataPtDesc": "关闭",
                    "value": "1",
                    "deviceName": "AFC001",
                    "subAppName": "AFC"
                }
            ]
        },
        {
            "deviceName": "ZM001",
            "pointList": [
                {
                    "keyId": 98610746,
                    "pointName": "ZGZ.BAS.ZM.ILLUMINATION01.ddicb01.Value",
                    "dataPtDesc": "关闭",
                    "value": "1",
                    "deviceName": "ZM001",
                    "subAppName": "BAS"
                }
            ]
        }
    ]
}

对比结果：
['"dataPtDesc":"AGM10开启状态"', '"dataPtDesc":"AGM1开启状态"', '"dataPtDesc":"关闭"', '"dataPtDesc":"广播开启"', '"dataPtDesc":"开启"', '"dataPtDesc":"照明01开启状态"', '"pointList":"keyId":98611064', '"pointList":"keyId":98611067', '"pointName":"ZGZ.PA.PA01.ddicb01.Value"', '"pointName":"ZGZ.PA.PA03.ddicb.Value"', '"subAppName":"AFC"', '"subAppName":"BAS"', '"subAppName":"PA"']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Point3.py", line 312, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_2020  -  2021-06-04 09:44:04

  [ case execution steps ]
数据点监控接口：设备实时状态查询 测试     #2.3
前置条件：token正确，deviceName：AFC001%2CAFC002%2CPA001%2CZM001 正确，locationId:347错误，虽然347存在，但不在目标location内
预期结果:
{
    "status": "false",
    "msg": "请求失败",
    "code": 1,
    "type": null,
    "data": 0
}
        
测试结果：
{
    "status": "false",
    "msg": "设备链接异常",
    "code": 1,
    "type": null,
    "data": null
}

对比结果：
['"data":0', '"data":null', '"msg":"设备链接异常"', '"msg":"请求失败"']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Point3.py", line 346, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_2021  -  2021-06-04 09:44:14

  [ case execution steps ]
数据点监控接口：设备实时状态查询 测试     #2.3
前置条件：token 为空，deviceName 为空，locationId 为空
预期结果:
{
    "status": "false",
    "msg": "请求失败",
    "code": 1,
    "type": null,
    "data": 0
}
        
测试结果：
{
    "msg": "用户未登录！",
    "code": 401,
    "status": "false"
}

对比结果：
['"code":1', '"code":401', '"data":0', '"msg":"用户未登录！"', '"msg":"请求失败"', '"type":null']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Point3.py", line 379, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError



>>> cases\API\Point4.py

[ suite setup ] cases\API\Point4.py
返回token

* API_2022  -  2021-06-04 09:44:14

  [ case execution steps ]
数据点监控接口：通过子系统查询设备自检信息 测试     #2.4
前置条件：token 正确，appName：BAS%2CAFC 正确，locationId 不填
预期结果:
{
    "status": "success", 
    "msg": "查询成功", 
    "code": 0, 
    "type": null, 
    "data": [
        {
            "subAppName": "BAS", 
            "deviceList": [
                {
                    "deviceName": "ESCALATOR002", 
                    "pointList": [
                        {
                            "keyId": 98610722, 
                            "pointName": "ZGZ.BAS.DFT.ESCALATOR02.ddicb.Value", 
                            "dataPtDesc": "电扶梯02关闭状态", 
                            "value": "0", 
                            "deviceName": "ESCALATOR002", 
                            "subAppName": "BAS"
                        }
                    ]
                }, 
                {
                    "deviceName": "ESCALATOR003", 
                    "pointList": [
                        {
                            "keyId": 98610725, 
                            "pointName": "ZGZ.BAS.DFT.ESCALATOR03.ddicb.Value", 
                            "dataPtDesc": "电扶梯03关闭状态", 
                            "value": "0", 
                            "deviceName": "ESCALATOR003", 
                            "subAppName": "BAS"
                        }
                    ]
                }, 
                {
                    "deviceName": "ESCALATOR004", 
                    "pointList": [
                        {
                            "keyId": 98610728, 
                            "pointName": "ZGZ.BAS.DFT.ESCALATOR04.ddicb.Value", 
                            "dataPtDesc": "电扶梯04关闭状态", 
                            "value": "0", 
                            "deviceName": "ESCALATOR004", 
                            "subAppName": "BAS"
                        }
                    ]
                }
            ]
        }
    ]
}
        
测试结果：
{
    "status": "success",
    "msg": "查询成功",
    "code": 0,
    "type": null,
    "data": [
        {
            "subAppName": "BAS",
            "deviceList": [
                {
                    "deviceName": "ESCALATOR002",
                    "pointList": [
                        {
                            "keyId": 98610722,
                            "pointName": "ZGZ.BAS.DFT.ESCALATOR02.ddicb.Value",
                            "dataPtDesc": "开启",
                            "value": "0",
                            "deviceName": "ESCALATOR002",
                            "subAppName": "BAS"
                        }
                    ]
                },
                {
                    "deviceName": "ESCALATOR003",
                    "pointList": [
                        {
                            "keyId": 98610725,
                            "pointName": "ZGZ.BAS.DFT.ESCALATOR03.ddicb.Value",
                            "dataPtDesc": "开启",
                            "value": "0",
                            "deviceName": "ESCALATOR003",
                            "subAppName": "BAS"
                        }
                    ]
                },
                {
                    "deviceName": "ESCALATOR004",
                    "pointList": [
                        {
                            "keyId": 98610728,
                            "pointName": "ZGZ.BAS.DFT.ESCALATOR04.ddicb.Value",
                            "dataPtDesc": "开启",
                            "value": "0",
                            "deviceName": "ESCALATOR004",
                            "subAppName": "BAS"
                        }
                    ]
                },
                {
                    "deviceName": "FJM001",
                    "pointList": [
                        {
                            "keyId": 98610784,
                            "pointName": "ZGZ.BAS.FJM.FJM01.ddicb01.Value",
                            "dataPtDesc": "开启",
                            "value": "0",
                            "deviceName": "FJM001",
                            "subAppName": "BAS"
                        }
                    ]
                },
                {
                    "deviceName": "FJM002",
                    "pointList": [
                        {
                            "keyId": 98610787,
                            "pointName": "ZGZ.BAS.FJM.FJM02.ddicb01.Value",
                            "dataPtDesc": "开启",
                            "value": "0",
                            "deviceName": "FJM002",
                            "subAppName": "BAS"
                        }
                    ]
                },
                {
                    "deviceName": "ZM001",
                    "pointList": [
                        {
                            "keyId": 98610746,
                            "pointName": "ZGZ.BAS.ZM.ILLUMINATION01.ddicb01.Value",
                            "dataPtDesc": "关闭",
                            "value": "1",
                            "deviceName": "ZM001",
                            "subAppName": "BAS"
                        }
                    ]
                },
                {
                    "deviceName": "ZM002",
                    "pointList": [
                        {
                            "keyId": 98610749,
                            "pointName": "ZGZ.BAS.ZM.ILLUMINATION02.ddicb01.Value",
                            "dataPtDesc": "关闭",
                            "value": "1",
                            "deviceName": "ZM002",
                            "subAppName": "BAS"
                        }
                    ]
                }
            ]
        },
        {
            "subAppName": "AFC",
            "deviceList": [
                {
                    "deviceName": "AFC001",
                    "pointList": [
                        {
                            "keyId": 98609913,
                            "pointName": "ZGZ.AFC.AGM1.ddiopen.Value",
                            "dataPtDesc": "关闭",
                            "value": "1",
                            "deviceName": "AFC001",
                            "subAppName": "AFC"
                        }
                    ]
                },
                {
                    "deviceName": "AFC002",
                    "pointList": [
                        {
                            "keyId": 98609949,
                            "pointName": "ZGZ.AFC.AGM10.ddiopen.Value",
                            "dataPtDesc": "关闭",
                            "value": "1",
                            "deviceName": "AFC002",
                            "subAppName": "AFC"
                        }
                    ]
                },
                {
                    "deviceName": "AFC003",
                    "pointList": [
                        {
                            "keyId": 98609954,
                            "pointName": "ZGZ.AFC.AGM11.ddiclose.Value",
                            "dataPtDesc": "开启",
                            "value": "0",
                            "deviceName": "AFC003",
                            "subAppName": "AFC"
                        }
                    ]
                },
                {
                    "deviceName": "AFC004",
                    "pointList": [
                        {
                            "keyId": 98609957,
                            "pointName": "ZGZ.AFC.AGM12.ddiopen.Value",
                            "dataPtDesc": "关闭",
                            "value": "1",
                            "deviceName": "AFC004",
                            "subAppName": "AFC"
                        }
                    ]
                },
                {
                    "deviceName": "AFC005",
                    "pointList": [
                        {
                            "keyId": 98609961,
                            "pointName": "ZGZ.AFC.AGM13.ddiopen.Value",
                            "dataPtDesc": "关闭",
                            "value": "1",
                            "deviceName": "AFC005",
                            "subAppName": "AFC"
                        }
                    ]
                }
            ]
        }
    ]
}

对比结果：
['"dataPtDesc":"关闭"', '"dataPtDesc":"开启"', '"dataPtDesc":"电扶梯02关闭状态"', '"dataPtDesc":"电扶梯03关闭状态"', '"dataPtDesc":"电扶梯04关闭状态"', '"deviceList":"deviceName":"AFC001"', '"deviceName":"AFC001"', '"deviceName":"AFC002"', '"deviceName":"AFC003"', '"deviceName":"AFC004"', '"deviceName":"AFC005"', '"deviceName":"FJM001"', '"deviceName":"FJM002"', '"deviceName":"ZM001"', '"deviceName":"ZM002"', '"pointList":"keyId":98609913', '"pointList":"keyId":98609949', '"pointList":"keyId":98609954', '"pointList":"keyId":98609957', '"pointList":"keyId":98609961', '"pointList":"keyId":98610746', '"pointList":"keyId":98610749', '"pointList":"keyId":98610784', '"pointList":"keyId":98610787', '"pointName":"ZGZ.AFC.AGM1.ddiopen.Value"', '"pointName":"ZGZ.AFC.AGM10.ddiopen.Value"', '"pointName":"ZGZ.AFC.AGM11.ddiclose.Value"', '"pointName":"ZGZ.AFC.AGM12.ddiopen.Value"', '"pointName":"ZGZ.AFC.AGM13.ddiopen.Value"', '"pointName":"ZGZ.BAS.FJM.FJM01.ddicb01.Value"', '"pointName":"ZGZ.BAS.FJM.FJM02.ddicb01.Value"', '"pointName":"ZGZ.BAS.ZM.ILLUMINATION01.ddicb01.Value"', '"pointName":"ZGZ.BAS.ZM.ILLUMINATION02.ddicb01.Value"', '"subAppName":"AFC"', '"value":"1"']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Point4.py", line 90, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_2023  -  2021-06-04 09:44:14

  [ case execution steps ]
数据点监控接口：通过子系统查询设备自检信息 测试     #2.4
前置条件：token 过期，appName：BAS%2CAFC 正确，locationId 不填
预期结果:
{
    "status": "false",
    "msg": "请求失败",
    "code": 1,
    "type": null,
    "data": 0
}
        
测试结果：
{
    "msg": "用户未登录！",
    "code": 401,
    "status": "false"
}

对比结果：
['"code":1', '"code":401', '"data":0', '"msg":"用户未登录！"', '"msg":"请求失败"', '"type":null']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Point4.py", line 124, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_2024  -  2021-06-04 09:44:14

  [ case execution steps ]
数据点监控接口：通过子系统查询设备自检信息 测试     #2.4
前置条件：token 不填，appName：BAS%2CAFC 正确，locationId 不填
预期结果:
{
    "status": "false",
    "msg": "请求失败",
    "code": 1,
    "type": null,
    "data": 0
}
        
测试结果：
{
    "msg": "用户未登录！",
    "code": 401,
    "status": "false"
}

对比结果：
['"code":1', '"code":401', '"data":0', '"msg":"用户未登录！"', '"msg":"请求失败"', '"type":null']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Point4.py", line 157, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_2025  -  2021-06-04 09:44:14

  [ case execution steps ]
数据点监控接口：通过子系统查询设备自检信息 测试     #2.4
前置条件：token正确，'appName': 'ECS%CFYM'错误，虽然存在，但不再目标appName内，locationId不填
预期结果:
{
    "status": "false",
    "msg": "请求失败",
    "code": 1,
    "type": null,
    "data": 0
}
        
测试结果：
{
    "status": "success",
    "msg": "查询成功",
    "code": 0,
    "type": null,
    "data": []
}

对比结果：
['"code":0', '"code":1', '"data":', '"data":0', '"msg":"查询成功"', '"msg":"请求失败"', '"status":"false"', '"status":"success"']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Point4.py", line 192, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_2026  -  2021-06-04 09:44:14

  [ case execution steps ]
数据点监控接口：通过子系统查询设备自检信息 测试     #2.4
前置条件：token 正确，appName 为空，locationId 不填
预期结果:
{
    "status": "false",
    "msg": "请求失败",
    "code": 1,
    "type": null,
    "data": 0
}
        
测试结果：
{
    "status": "false",
    "msg": "子系统名称不能为空！",
    "code": 1,
    "type": null,
    "data": null
}

对比结果：
['"data":0', '"data":null', '"msg":"子系统名称不能为空！"', '"msg":"请求失败"']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Point4.py", line 224, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_2027  -  2021-06-04 09:44:14

  [ case execution steps ]
数据点监控接口：通过子系统查询设备自检信息 测试     #2.4
前置条件：token 正确，appName：BAS%2CAFC 正确，locationId：349 正确
预期结果:
{
    "status": "success", 
    "msg": "查询成功", 
    "code": 0, 
    "type": null, 
    "data": [
        {
            "subAppName": "BAS", 
            "deviceList": [
                {
                    "deviceName": "ESCALATOR002", 
                    "pointList": [
                        {
                            "keyId": 98610722, 
                            "pointName": "ZGZ.BAS.DFT.ESCALATOR02.ddicb.Value", 
                            "dataPtDesc": "电扶梯02关闭状态", 
                            "value": "0", 
                            "deviceName": "ESCALATOR002", 
                            "subAppName": "BAS"
                        }
                    ]
                }, 
                {
                    "deviceName": "ESCALATOR003", 
                    "pointList": [
                        {
                            "keyId": 98610725, 
                            "pointName": "ZGZ.BAS.DFT.ESCALATOR03.ddicb.Value", 
                            "dataPtDesc": "电扶梯03关闭状态", 
                            "value": "0", 
                            "deviceName": "ESCALATOR003", 
                            "subAppName": "BAS"
                        }
                    ]
                }, 
                {
                    "deviceName": "ESCALATOR004", 
                    "pointList": [
                        {
                            "keyId": 98610728, 
                            "pointName": "ZGZ.BAS.DFT.ESCALATOR04.ddicb.Value", 
                            "dataPtDesc": "电扶梯04关闭状态", 
                            "value": "0", 
                            "deviceName": "ESCALATOR004", 
                            "subAppName": "BAS"
                        }
                    ]
                }
            ]
        }
    ]
}
        
测试结果：
{
    "status": "success",
    "msg": "查询成功",
    "code": 0,
    "type": null,
    "data": [
        {
            "subAppName": "BAS",
            "deviceList": [
                {
                    "deviceName": "ESCALATOR002",
                    "pointList": [
                        {
                            "keyId": 98610722,
                            "pointName": "ZGZ.BAS.DFT.ESCALATOR02.ddicb.Value",
                            "dataPtDesc": "开启",
                            "value": "0",
                            "deviceName": "ESCALATOR002",
                            "subAppName": "BAS"
                        }
                    ]
                },
                {
                    "deviceName": "ESCALATOR003",
                    "pointList": [
                        {
                            "keyId": 98610725,
                            "pointName": "ZGZ.BAS.DFT.ESCALATOR03.ddicb.Value",
                            "dataPtDesc": "开启",
                            "value": "0",
                            "deviceName": "ESCALATOR003",
                            "subAppName": "BAS"
                        }
                    ]
                },
                {
                    "deviceName": "ESCALATOR004",
                    "pointList": [
                        {
                            "keyId": 98610728,
                            "pointName": "ZGZ.BAS.DFT.ESCALATOR04.ddicb.Value",
                            "dataPtDesc": "开启",
                            "value": "0",
                            "deviceName": "ESCALATOR004",
                            "subAppName": "BAS"
                        }
                    ]
                },
                {
                    "deviceName": "FJM001",
                    "pointList": [
                        {
                            "keyId": 98610784,
                            "pointName": "ZGZ.BAS.FJM.FJM01.ddicb01.Value",
                            "dataPtDesc": "开启",
                            "value": "0",
                            "deviceName": "FJM001",
                            "subAppName": "BAS"
                        }
                    ]
                },
                {
                    "deviceName": "FJM002",
                    "pointList": [
                        {
                            "keyId": 98610787,
                            "pointName": "ZGZ.BAS.FJM.FJM02.ddicb01.Value",
                            "dataPtDesc": "开启",
                            "value": "0",
                            "deviceName": "FJM002",
                            "subAppName": "BAS"
                        }
                    ]
                },
                {
                    "deviceName": "ZM001",
                    "pointList": [
                        {
                            "keyId": 98610746,
                            "pointName": "ZGZ.BAS.ZM.ILLUMINATION01.ddicb01.Value",
                            "dataPtDesc": "关闭",
                            "value": "1",
                            "deviceName": "ZM001",
                            "subAppName": "BAS"
                        }
                    ]
                },
                {
                    "deviceName": "ZM002",
                    "pointList": [
                        {
                            "keyId": 98610749,
                            "pointName": "ZGZ.BAS.ZM.ILLUMINATION02.ddicb01.Value",
                            "dataPtDesc": "关闭",
                            "value": "1",
                            "deviceName": "ZM002",
                            "subAppName": "BAS"
                        }
                    ]
                }
            ]
        },
        {
            "subAppName": "AFC",
            "deviceList": [
                {
                    "deviceName": "AFC001",
                    "pointList": [
                        {
                            "keyId": 98609913,
                            "pointName": "ZGZ.AFC.AGM1.ddiopen.Value",
                            "dataPtDesc": "关闭",
                            "value": "1",
                            "deviceName": "AFC001",
                            "subAppName": "AFC"
                        }
                    ]
                },
                {
                    "deviceName": "AFC002",
                    "pointList": [
                        {
                            "keyId": 98609949,
                            "pointName": "ZGZ.AFC.AGM10.ddiopen.Value",
                            "dataPtDesc": "关闭",
                            "value": "1",
                            "deviceName": "AFC002",
                            "subAppName": "AFC"
                        }
                    ]
                },
                {
                    "deviceName": "AFC003",
                    "pointList": [
                        {
                            "keyId": 98609954,
                            "pointName": "ZGZ.AFC.AGM11.ddiclose.Value",
                            "dataPtDesc": "开启",
                            "value": "0",
                            "deviceName": "AFC003",
                            "subAppName": "AFC"
                        }
                    ]
                },
                {
                    "deviceName": "AFC004",
                    "pointList": [
                        {
                            "keyId": 98609957,
                            "pointName": "ZGZ.AFC.AGM12.ddiopen.Value",
                            "dataPtDesc": "关闭",
                            "value": "1",
                            "deviceName": "AFC004",
                            "subAppName": "AFC"
                        }
                    ]
                },
                {
                    "deviceName": "AFC005",
                    "pointList": [
                        {
                            "keyId": 98609961,
                            "pointName": "ZGZ.AFC.AGM13.ddiopen.Value",
                            "dataPtDesc": "关闭",
                            "value": "1",
                            "deviceName": "AFC005",
                            "subAppName": "AFC"
                        }
                    ]
                }
            ]
        }
    ]
}

对比结果：
['"dataPtDesc":"关闭"', '"dataPtDesc":"开启"', '"dataPtDesc":"电扶梯02关闭状态"', '"dataPtDesc":"电扶梯03关闭状态"', '"dataPtDesc":"电扶梯04关闭状态"', '"deviceList":"deviceName":"AFC001"', '"deviceName":"AFC001"', '"deviceName":"AFC002"', '"deviceName":"AFC003"', '"deviceName":"AFC004"', '"deviceName":"AFC005"', '"deviceName":"FJM001"', '"deviceName":"FJM002"', '"deviceName":"ZM001"', '"deviceName":"ZM002"', '"pointList":"keyId":98609913', '"pointList":"keyId":98609949', '"pointList":"keyId":98609954', '"pointList":"keyId":98609957', '"pointList":"keyId":98609961', '"pointList":"keyId":98610746', '"pointList":"keyId":98610749', '"pointList":"keyId":98610784', '"pointList":"keyId":98610787', '"pointName":"ZGZ.AFC.AGM1.ddiopen.Value"', '"pointName":"ZGZ.AFC.AGM10.ddiopen.Value"', '"pointName":"ZGZ.AFC.AGM11.ddiclose.Value"', '"pointName":"ZGZ.AFC.AGM12.ddiopen.Value"', '"pointName":"ZGZ.AFC.AGM13.ddiopen.Value"', '"pointName":"ZGZ.BAS.FJM.FJM01.ddicb01.Value"', '"pointName":"ZGZ.BAS.FJM.FJM02.ddicb01.Value"', '"pointName":"ZGZ.BAS.ZM.ILLUMINATION01.ddicb01.Value"', '"pointName":"ZGZ.BAS.ZM.ILLUMINATION02.ddicb01.Value"', '"subAppName":"AFC"', '"value":"1"']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Point4.py", line 304, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_2028  -  2021-06-04 09:44:14

  [ case execution steps ]
数据点监控接口：通过子系统查询设备自检信息 测试     #2.4
前置条件：token 正确，appName：BAS%2CAFC 正确，locationId：347 错误，虽然347存在，但不在目标location内
预期结果:
{
    "status": "false",
    "msg": "请求失败",
    "code": 1,
    "type": null,
    "data": 0
}
        
测试结果：
{
    "status": "false",
    "msg": "设备链接异常",
    "code": 1,
    "type": null,
    "data": null
}

对比结果：
['"data":0', '"data":null', '"msg":"设备链接异常"', '"msg":"请求失败"']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Point4.py", line 338, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_2029  -  2021-06-04 09:44:24

  [ case execution steps ]
数据点监控接口：通过子系统查询设备自检信息 测试     #2.4
前置条件：token 为空，appName 为空， locationId 为空
预期结果:
{
    "status": "false",
    "msg": "请求失败",
    "code": 1,
    "type": null,
    "data": 0
}
        
测试结果：
{
    "msg": "用户未登录！",
    "code": 401,
    "status": "false"
}

对比结果：
['"code":1', '"code":401', '"data":0', '"msg":"用户未登录！"', '"msg":"请求失败"', '"type":null']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Point4.py", line 371, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError



>>> cases\API\Point5.py

[ suite setup ] cases\API\Point5.py
返回token

* API_2030  -  2021-06-04 09:44:24

  [ case execution steps ]
数据点监控接口：通过设备名称进行设备自检接口 测试     #2.5
前置条件：token 正确，deviceName：AFC001%2CAFC002%2CPA001%2CZM001 正确， locationId 不填
预期结果:
{
    "status": "success", 
    "msg": "查询成功", 
    "code": 0, 
    "type": null, 
    "data": [
        {
            "deviceName": "AFC002", 
            "pointList": [
                {
                    "keyId": 98609949, 
                    "pointName": "ZGZ.AFC.AGM10.ddiopen.Value", 
                    "dataPtDesc": "AGM10开启状态", 
                    "value": "0", 
                    "deviceName": "AFC002", 
                    "subAppName": "AFC"
                }
            ]
        }, 
        {
            "deviceName": "AFC001", 
            "pointList": [
                {
                    "keyId": 98609913, 
                    "pointName": "ZGZ.AFC.AGM1.ddiopen.Value", 
                    "dataPtDesc": "AGM1开启状态", 
                    "value": "0", 
                    "deviceName": "AFC001", 
                    "subAppName": "AFC"
                }
            ]
        }
    ]
}
        
测试结果：
{
    "status": "success",
    "msg": "查询成功",
    "code": 0,
    "type": null,
    "data": [
        {
            "deviceName": "AFC002",
            "pointList": [
                {
                    "keyId": 98611072,
                    "pointName": "ZGZ.AFC.AGM10.aicb.Value",
                    "dataPtDesc": "",
                    "value": "0",
                    "deviceName": "AFC002",
                    "subAppName": "AFC"
                }
            ]
        },
        {
            "deviceName": "PA001",
            "pointList": [
                {
                    "keyId": 98611062,
                    "pointName": "ZGZ.PA.PA01.ddicb.Value",
                    "dataPtDesc": "正常服务",
                    "value": "0",
                    "deviceName": "PA001",
                    "subAppName": "PA"
                }
            ]
        },
        {
            "deviceName": "AFC001",
            "pointList": [
                {
                    "keyId": 98611071,
                    "pointName": "ZGZ.AFC.AGM1.aicb.Value",
                    "dataPtDesc": "",
                    "value": "0",
                    "deviceName": "AFC001",
                    "subAppName": "AFC"
                }
            ]
        },
        {
            "deviceName": "ZM001",
            "pointList": [
                {
                    "keyId": 98610745,
                    "pointName": "ZGZ.BAS.ZM.ILLUMINATION01.ddicb.Value",
                    "dataPtDesc": "正常服务",
                    "value": "0",
                    "deviceName": "ZM001",
                    "subAppName": "BAS"
                }
            ]
        }
    ]
}

对比结果：
['"dataPtDesc":""', '"dataPtDesc":"AGM10开启状态"', '"dataPtDesc":"AGM1开启状态"', '"dataPtDesc":"正常服务"', '"deviceName":"PA001"', '"deviceName":"ZM001"', '"pointList":"keyId":98609913', '"pointList":"keyId":98609949', '"pointList":"keyId":98610745', '"pointList":"keyId":98611062', '"pointList":"keyId":98611071', '"pointList":"keyId":98611072', '"pointName":"ZGZ.AFC.AGM1.aicb.Value"', '"pointName":"ZGZ.AFC.AGM1.ddiopen.Value"', '"pointName":"ZGZ.AFC.AGM10.aicb.Value"', '"pointName":"ZGZ.AFC.AGM10.ddiopen.Value"', '"pointName":"ZGZ.BAS.ZM.ILLUMINATION01.ddicb.Value"', '"pointName":"ZGZ.PA.PA01.ddicb.Value"', '"subAppName":"BAS"', '"subAppName":"PA"']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Point5.py", line 72, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_2031  -  2021-06-04 09:44:24

  [ case execution steps ]
数据点监控接口：通过设备名称进行设备自检接口 测试     #2.5
前置条件：token 过期，deviceName：AFC001%2CAFC002%2CPA001%2CZM001 正确， locationId 不填
预期结果:
{
    "status": "false",
    "msg": "请求失败",
    "code": 1,
    "type": null,
    "data": 0
}
        
测试结果：
{
    "msg": "用户未登录！",
    "code": 401,
    "status": "false"
}

对比结果：
['"code":1', '"code":401', '"data":0', '"msg":"用户未登录！"', '"msg":"请求失败"', '"type":null']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Point5.py", line 106, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_2032  -  2021-06-04 09:44:24

  [ case execution steps ]
数据点监控接口：通过设备名称进行设备自检接口 测试     #2.5
前置条件：token 为空，deviceName：AFC001%2CAFC002%2CPA001%2CZM001 正确， locationId 不填
预期结果:
{
    "status": "false",
    "msg": "请求失败",
    "code": 1,
    "type": null,
    "data": 0
}
        
测试结果：
{
    "msg": "用户未登录！",
    "code": 401,
    "status": "false"
}

对比结果：
['"code":1', '"code":401', '"data":0', '"msg":"用户未登录！"', '"msg":"请求失败"', '"type":null']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Point5.py", line 139, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_2033  -  2021-06-04 09:44:24

  [ case execution steps ]
数据点监控接口：通过设备名称进行设备自检接口 测试     #2.5
前置条件：token正确，'deviceName': 'ECS%CFYM'错误，虽然存在，但不再目标deviceName内，locationId不填
预期结果:
{
    "status": "false",
    "msg": "请求失败",
    "code": 1,
    "type": null,
    "data": 0
}
        
测试结果：
{
    "status": "success",
    "msg": "查询成功",
    "code": 0,
    "type": null,
    "data": []
}

对比结果：
['"code":0', '"code":1', '"data":', '"data":0', '"msg":"查询成功"', '"msg":"请求失败"', '"status":"false"', '"status":"success"']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Point5.py", line 174, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_2034  -  2021-06-04 09:44:24

  [ case execution steps ]
数据点监控接口：通过设备名称进行设备自检接口 测试     #2.5
前置条件：token 正确， deviceName 为空， locationId 不填
预期结果:
{
    "status": "false",
    "msg": "请求失败",
    "code": 1,
    "type": null,
    "data": 0
}
        
测试结果：
{
    "status": "false",
    "msg": "设备名称不能为空！",
    "code": 1,
    "type": null,
    "data": null
}

对比结果：
['"data":0', '"data":null', '"msg":"设备名称不能为空！"', '"msg":"请求失败"']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Point5.py", line 206, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_2035  -  2021-06-04 09:44:25

  [ case execution steps ]
数据点监控接口：通过设备名称进行设备自检接口 测试     #2.5
前置条件：token 正确， deviceName：AFC001%2CAFC002%2CPA001%2CZM001， locationId：349 正确
预期结果:
{
    "status": "success", 
    "msg": "查询成功", 
    "code": 0, 
    "type": null, 
    "data": [
        {
            "deviceName": "AFC002", 
            "pointList": [
                {
                    "keyId": 98609949, 
                    "pointName": "ZGZ.AFC.AGM10.ddiopen.Value", 
                    "dataPtDesc": "AGM10开启状态", 
                    "value": "0", 
                    "deviceName": "AFC002", 
                    "subAppName": "AFC"
                }
            ]
        }, 
        {
            "deviceName": "AFC001", 
            "pointList": [
                {
                    "keyId": 98609913, 
                    "pointName": "ZGZ.AFC.AGM1.ddiopen.Value", 
                    "dataPtDesc": "AGM1开启状态", 
                    "value": "0", 
                    "deviceName": "AFC001", 
                    "subAppName": "AFC"
                }
            ]
        }
    ]
}
        
测试结果：
{
    "status": "success",
    "msg": "查询成功",
    "code": 0,
    "type": null,
    "data": [
        {
            "deviceName": "AFC002",
            "pointList": [
                {
                    "keyId": 98611072,
                    "pointName": "ZGZ.AFC.AGM10.aicb.Value",
                    "dataPtDesc": "",
                    "value": "0",
                    "deviceName": "AFC002",
                    "subAppName": "AFC"
                }
            ]
        },
        {
            "deviceName": "PA001",
            "pointList": [
                {
                    "keyId": 98611062,
                    "pointName": "ZGZ.PA.PA01.ddicb.Value",
                    "dataPtDesc": "正常服务",
                    "value": "0",
                    "deviceName": "PA001",
                    "subAppName": "PA"
                }
            ]
        },
        {
            "deviceName": "AFC001",
            "pointList": [
                {
                    "keyId": 98611071,
                    "pointName": "ZGZ.AFC.AGM1.aicb.Value",
                    "dataPtDesc": "",
                    "value": "0",
                    "deviceName": "AFC001",
                    "subAppName": "AFC"
                }
            ]
        },
        {
            "deviceName": "ZM001",
            "pointList": [
                {
                    "keyId": 98610745,
                    "pointName": "ZGZ.BAS.ZM.ILLUMINATION01.ddicb.Value",
                    "dataPtDesc": "正常服务",
                    "value": "0",
                    "deviceName": "ZM001",
                    "subAppName": "BAS"
                }
            ]
        }
    ]
}

对比结果：
['"dataPtDesc":""', '"dataPtDesc":"AGM10开启状态"', '"dataPtDesc":"AGM1开启状态"', '"dataPtDesc":"正常服务"', '"deviceName":"PA001"', '"deviceName":"ZM001"', '"pointList":"keyId":98609913', '"pointList":"keyId":98609949', '"pointList":"keyId":98610745', '"pointList":"keyId":98611062', '"pointList":"keyId":98611071', '"pointList":"keyId":98611072', '"pointName":"ZGZ.AFC.AGM1.aicb.Value"', '"pointName":"ZGZ.AFC.AGM1.ddiopen.Value"', '"pointName":"ZGZ.AFC.AGM10.aicb.Value"', '"pointName":"ZGZ.AFC.AGM10.ddiopen.Value"', '"pointName":"ZGZ.BAS.ZM.ILLUMINATION01.ddicb.Value"', '"pointName":"ZGZ.PA.PA01.ddicb.Value"', '"subAppName":"BAS"', '"subAppName":"PA"']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Point5.py", line 268, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_2036  -  2021-06-04 09:44:25

  [ case execution steps ]
数据点监控接口：通过设备名称进行设备自检接口 测试     #2.5
前置条件：token 正确， deviceName：AFC001%2CAFC002%2CPA001%2CZM001， locationId：347 错误，虽然347存在，但不在目标location内
预期结果:
{
    "status": "false",
    "msg": "请求失败",
    "code": 1,
    "type": null,
    "data": 0
}
        
测试结果：
{
    "status": "false",
    "msg": "设备链接异常",
    "code": 1,
    "type": null,
    "data": null
}

对比结果：
['"data":0', '"data":null', '"msg":"设备链接异常"', '"msg":"请求失败"']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Point5.py", line 302, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_2037  -  2021-06-04 09:44:34

  [ case execution steps ]
数据点监控接口：通过设备名称进行设备自检接口 测试     #2.5
前置条件：token 为空，deviceName 为空，locationId 为空
预期结果:
{
    "status": "false",
    "msg": "请求失败",
    "code": 1,
    "type": null,
    "data": 0
}
        
测试结果：
{
    "msg": "用户未登录！",
    "code": 401,
    "status": "false"
}

对比结果：
['"code":1', '"code":401', '"data":0', '"msg":"用户未登录！"', '"msg":"请求失败"', '"type":null']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Point5.py", line 335, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError



>>> cases\API\Point6.py

[ suite setup ] cases\API\Point6.py
返回token

* API_2038  -  2021-06-04 09:44:34

  [ case execution steps ]
数据点监控接口：获取所有子系统接口 测试     #2.6
前置条件：token 正确
预期结果:
{
    "status": "success", 
    "msg": "查询成功", 
    "code": 0, 
    "type": null, 
    "data": [
        {
            "id": 106, 
            "subAppName": "ACS", 
            "subAppDesc": "门禁系统（ACS）"
        }, 
        {
            "id": 104, 
            "subAppName": "AFC", 
            "subAppDesc": "自动售检票系统（AFC）"
        }, 
        {
            "id": 102, 
            "subAppName": "BAS", 
            "subAppDesc": "环境与设备监控系统（BAS）"
        }
    ]
}
        
测试结果：
{
    "status": "success",
    "msg": "查询成功",
    "code": 0,
    "type": null,
    "data": [
        {
            "id": 106,
            "subAppName": "ACS",
            "subAppDesc": "门禁系统（ACS）"
        },
        {
            "id": 104,
            "subAppName": "AFC",
            "subAppDesc": "自动售检票系统（AFC）"
        },
        {
            "id": 102,
            "subAppName": "BAS",
            "subAppDesc": "环境与设备监控系统（BAS）"
        },
        {
            "id": 105,
            "subAppName": "CCTV",
            "subAppDesc": "闭路电视监控系统（CCTV）"
        },
        {
            "id": 108,
            "subAppName": "CLK",
            "subAppDesc": "时钟系统（CLK）"
        },
        {
            "id": 101,
            "subAppName": "FAS",
            "subAppDesc": "火灾自动报警系统（FAS）"
        },
        {
            "id": 109,
            "subAppName": "PA",
            "subAppDesc": "广播系统（PA）"
        },
        {
            "id": 110,
            "subAppName": "PIS",
            "subAppDesc": "乘客信息系统（PIS）"
        },
        {
            "id": 100,
            "subAppName": "PSCADA",
            "subAppDesc": "电力监控系统（SCADA）"
        },
        {
            "id": 103,
            "subAppName": "PSD",
            "subAppDesc": "站台门（PSD）"
        },
        {
            "id": 107,
            "subAppName": "SIG",
            "subAppDesc": "信号系统（SIG）"
        }
    ]
}

对比结果：
['"id":100', '"id":101', '"id":103', '"id":105', '"id":107', '"id":108', '"id":109', '"id":110', '"subAppDesc":"乘客信息系统（PIS）"', '"subAppDesc":"信号系统（SIG）"', '"subAppDesc":"广播系统（PA）"', '"subAppDesc":"时钟系统（CLK）"', '"subAppDesc":"火灾自动报警系统（FAS）"', '"subAppDesc":"电力监控系统（SCADA）"', '"subAppDesc":"站台门（PSD）"', '"subAppDesc":"闭路电视监控系统（CCTV）"', '"subAppName":"CCTV"', '"subAppName":"CLK"', '"subAppName":"FAS"', '"subAppName":"PA"', '"subAppName":"PIS"', '"subAppName":"PSCADA"', '"subAppName":"PSD"', '"subAppName":"SIG"']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Point6.py", line 57, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_2039  -  2021-06-04 09:44:34

  [ case execution steps ]
数据点监控接口：获取所有子系统接口 测试     #2.6
前置条件：token 过期
预期结果:
{
    "status": "false",
    "msg": "请求失败",
    "code": 1,
    "type": null,
    "data": 0
}
        
测试结果：
{
    "msg": "用户未登录！",
    "code": 401,
    "status": "false"
}

对比结果：
['"code":1', '"code":401', '"data":0', '"msg":"用户未登录！"', '"msg":"请求失败"', '"type":null']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Point6.py", line 88, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_2040  -  2021-06-04 09:44:35

  [ case execution steps ]
数据点监控接口：获取所有子系统接口 测试     #2.6
前置条件：token 为空
预期结果:
{
    "status": "false",
    "msg": "请求失败",
    "code": 1,
    "type": null,
    "data": 0
}
        
测试结果：
{
    "msg": "用户未登录！",
    "code": 401,
    "status": "false"
}

对比结果：
['"code":1', '"code":401', '"data":0', '"msg":"用户未登录！"', '"msg":"请求失败"', '"type":null']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Point6.py", line 119, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError



  ========= 测试结束 : 20210604_094435 =========


  耗时    : 43.986 秒


  用例数量 : 69

  通过 : 0

  失败 : 69

  异常 : 0

  套件初始化失败 : 0

  套件清除  失败 : 0

  用例初始化失败 : 0

  用例清除  失败 : 0
